<?php /* Smarty version 2.6.16, created on 2009-04-15 05:19:49
         compiled from Config.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'Config.html', 1, false),array('function', 'language', 'Config.html', 5, false),array('function', 'url', 'Config.html', 53, false),array('function', 'html_options', 'Config.html', 137, false),array('modifier', 'replace', 'Config.html', 31, false),)), $this); ?>
<?php echo smarty_function_messages(array('block' => $this->_tpl_vars['sBlockName']), $this);?>

<?php if (! empty ( $this->_tpl_vars['sSecure'] )): ?>
<table cellspacing="0" width="100%" class="forumline">
<tr>
    <td class="row-header"><span><?php echo smarty_function_language(array('text' => 'Mod_Admin.important_notice'), $this);?>
</span></td>
</tr>
<tr>
	<th class="gensmall" style="text-align:left;">
	<?php echo smarty_function_language(array('text' => 'Mod_Admin.add_to_htaccess'), $this);?>

	</th>
</tr>
<tr>
	<td class="row1">
	<textarea style="width:98%;" cols="80" rows="4" name="secure" onfocus="this.select();"><?php echo $this->_tpl_vars['sSecure']; ?>
</textarea>
	</td>
</tr>
</table>
<br />
<?php endif;  if ($this->_tpl_vars['sJsValMess']):  echo $this->_tpl_vars['sJsValMess']; ?>

<?php endif;  if ($this->_tpl_vars['removed']): ?>
<div style="padding:6px; font-size:10pt; font-weight:bold;">
	<?php echo smarty_function_language(array('text' => 'Mod_Admin.option_deleted'), $this);?>

</div>
<?php endif; ?>
<table cellspacing="0" width="100%" class="forumline">
<?php if (count ( $this->_tpl_vars['aOptions'] ) && $this->_tpl_vars['sBlockName'] != 'config_pay'): ?>
<tr>
    <td class="row-header" colspan="4"><span><?php echo smarty_function_language(array('text' => 'Mod_Admin.settings_and_options'), $this); if (getParam ( 'debug' )): ?> - <?php echo ((is_array($_tmp=$this->_tpl_vars['sBlockName'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'config_', '') : smarty_modifier_replace($_tmp, 'config_', ''));  endif; ?></span></td>
</tr>
    <td class="catBottom tright" colspan="4">
    <form method="post" action="<?php echo smarty_function_url(array('link' => 'admin.config.options'), $this);?>
">
    	<b><?php echo smarty_function_language(array('text' => 'Mod_Admin.currently_editing'), $this);?>
:</b>
    	<select name="url" onchange="this.form.submit();">
    	<?php $_from = $this->_tpl_vars['aOptions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aOption']):
?>
		<option value="<?php echo $this->_tpl_vars['aOption']['url']; ?>
"<?php if ($this->_tpl_vars['aOption']['selected']): ?> selected="true"<?php endif; ?>><?php echo $this->_tpl_vars['aOption']['title']; ?>
</option>
		<?php endforeach; endif; unset($_from); ?>
		</select>
	</form>
    </td>
</tr>
<?php else: ?>
<tr>
    <td class="row-header" colspan="4"><span><?php echo $this->_tpl_vars['sTitle'];  if (getParam ( 'debug' )): ?> - <?php echo ((is_array($_tmp=$this->_tpl_vars['sBlockName'])) ? $this->_run_mod_handler('replace', true, $_tmp, 'config_', '') : smarty_modifier_replace($_tmp, 'config_', ''));  endif; ?></span></td>
</tr>
<?php endif; ?>
<form method="post" action="<?php echo $this->_tpl_vars['sSubmitUrl']; ?>
"<?php if ($this->_tpl_vars['sJsVal']): ?> onsubmit="<?php echo $this->_tpl_vars['sJsVal']; ?>
"<?php endif; ?>>
<?php if ($this->_tpl_vars['sHideBlock']): ?>
<tr>
    <td class="catBottom" colspan="3">
    <?php echo smarty_function_language(array('text' => 'Mod_Admin.error_title'), $this);?>

    <div style="padding:6px; color:red;">
    	<?php echo $this->_tpl_vars['sHideBlock']; ?>

    </div>
    </td>
</tr>
<?php endif;  if (count ( $this->_tpl_vars['aItems'] )): ?>
<tr>
	<?php if (getParam ( 'debug' )): ?>
	<th align="center" class="gensmall">
    	Postion
    </th>	
	<th align="center" class="gensmall">
    	<?php echo smarty_function_language(array('text' => 'Mod_Admin.variable'), $this);?>

    </th>
    <?php endif; ?>
    <th>
    	<?php echo smarty_function_language(array('text' => 'Mod_Admin.setting'), $this);?>

    </th>
    <th>
    	<?php echo smarty_function_language(array('text' => 'Mod_Admin.value'), $this);?>

    </th>
</tr>
<?php else: ?>
<tr>
	<td class="row1" colspan="4" style="text-align:center;">
		No settings found.
	</td>
</tr>
<?php endif;  $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aitems'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['aitems']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['aItem']):
        $this->_foreach['aitems']['iteration']++;
?>
    <tr<?php if ($this->_tpl_vars['aItem']['bIsHidden']): ?> style="display:none;"<?php endif; ?>>
    <?php if (getParam ( 'debug' )): ?>
	<td class="row1" style="text-align:center;">
		<input type="text" name="pos[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]" size="3" value="<?php echo $this->_tpl_vars['aItem']['pos']; ?>
" style="text-align:center;" />
	</td>
	<?php endif; ?>    
    <?php if (getParam ( 'debug' )): ?>
	<td class="row1">
		<?php echo $this->_tpl_vars['aItem']['code']; ?>

	</td>
	<?php endif; ?>
    <td style="width:60%;font-size:8pt;text-align:right;" class="row1">
        <b><?php echo $this->_tpl_vars['aItem']['title']; ?>
</b>:
        <?php if ($this->_tpl_vars['aItem']['description']): ?>
        <div style="padding:4px;">
        	<span title="<?php echo $this->_tpl_vars['aItem']['code']; ?>
"><?php echo $this->_tpl_vars['aItem']['description']; ?>
</span>
        </div>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['aItem']['extra_info']): ?>
        <div style="padding:4px;">
        	<?php echo $this->_tpl_vars['aItem']['extra_info']; ?>

        </div>
        <?php endif; ?>
	</td><td style="width:40%;font-size:8pt;" class="row2">
	<?php if ($this->_tpl_vars['aItem']['settype'] == 'text' || $this->_tpl_vars['aItem']['settype'] == 'TEXT'): ?>
        <input type="text" name="val[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]" size="40" class="input" value="<?php echo $this->_tpl_vars['aItem']['val']; ?>
" />
	<?php elseif ($this->_tpl_vars['aItem']['settype'] == 'textarea' || $this->_tpl_vars['aItem']['settype'] == 'TEXTAREA'): ?>
        <textarea name="val[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]" cols="30" rows="4"><?php echo $this->_tpl_vars['aItem']['val']; ?>
</textarea>
	<?php elseif ($this->_tpl_vars['aItem']['settype'] == 'boolean' || $this->_tpl_vars['aItem']['settype'] == 'BOOLEAN'): ?>
		<label><input type="radio" value="1" name="val[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]"<?php if ($this->_tpl_vars['aItem']['val'] != 0): ?> checked="checked"<?php endif; ?>/> <?php echo smarty_function_language(array('text' => 'yes'), $this);?>
 </label>
		<span style="padding-left:4px;"><label><input type="radio" value="0" name="val[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]"<?php if ($this->_tpl_vars['aItem']['val'] == 0): ?> checked="checked"<?php endif; ?>/> <?php echo smarty_function_language(array('text' => 'no'), $this);?>
</label></span>
	<?php elseif ($this->_tpl_vars['aItem']['settype'] == 'select' || $this->_tpl_vars['aItem']['settype'] == 'SELECT'): ?>
        <select name="val[<?php echo $this->_tpl_vars['aItem']['code']; ?>
]" style="width:150px;">
        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aItem']['select'],'selected' => $this->_tpl_vars['aItem']['val']), $this);?>

        </select>
	<?php endif; ?>
	<?php if (getParam ( 'debug' )): ?>
		[ <a href="<?php echo smarty_function_url(array('link' => 'current','did' => $this->_tpl_vars['aItem']['sett_id'],'dcode' => $this->_tpl_vars['aItem']['code']), $this);?>
" onclick="if (!sure('')) return false;"><?php echo smarty_function_language(array('text' => 'Mod_Admin.delete'), $this);?>
</a> ]
	<?php endif; ?>
     </td>
    </tr>
<?php endforeach; endif; unset($_from);  if (! $this->_tpl_vars['sHideBlock']):  if (count ( $this->_tpl_vars['aItems'] )): ?>
<tr>
    <td class="catBottom center" colspan="4">
		<span><input type="submit" name="act[save]" value="&gt;&gt; <?php echo smarty_function_language(array('text' => 'save_settings'), $this);?>
 &gt;&gt;<?php if ($this->_tpl_vars['sBlockName'] == 'config_video' || $this->_tpl_vars['sBlockName'] == 'config_video_player' || $this->_tpl_vars['sBlockName'] == 'config_ffmpeg'): ?> <?php echo $this->_tpl_vars['sTitle']; ?>
 <?php endif; ?>&gt;&gt;&gt;&gt;&gt;&gt;" style="cursor:pointer;font-size:10pt;" /></span>
    </td>
</tr>
<?php endif;  endif; ?>
</form>
</table>